<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
	<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>  
	<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<fmt:bundle basename="br.com.universidade.castelo.branco.resources.ApplicationResources" prefix="" >
<head>

<script type="text/javascript">
function insRow()
{
	var x=document.getElementById('myTable').insertRow(6);
	var y=x.insertCell(0);
	var z=x.insertCell(1);
	z.align='center';
	y.innerHTML="<td><input id=\"inputNormal\" type=\"text\" name=\"alternativa\"></td>";
	z.innerHTML="<td><input id=\"botaoVermelho\" type=\"button\" value=\"&nbsp;-&nbsp;\" onclick=\"deleteRow(this)\"></td>";
	
	//<input id="botaoVermelho" type="reset" value='<fmt:message key="pds.botao.remover"></fmt:message>'>
}

function deleteRow(r)
{
	var i=r.parentNode.parentNode.rowIndex;
	document.getElementById('myTable').deleteRow(i);
}

</script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

</head>
<body>
<jsp:include page="/WEB-INF/views/pesquisadesatisfacao/menu.jsp" flush="true"></jsp:include>

<img src="resources/imagens/pixel_transparente.gif" height="5%" width="10%">

<fieldset id="fieldset">

<legend id="alinhamentoForm">
	<h3><fmt:message key="cadastro.modulo.modelo.resposta"></fmt:message></h3>
</legend>

<form action="adicionaModeloResposta" method="post" >

<table id="alinhamentoForm" align="center" >
<tr>
<td> 
<table id="myTable">
	<tr>
		<td>
			&nbsp;&nbsp;<fmt:message key="cadastro.modulo.campos.obrigatorios"></fmt:message>
		</td>
	
	</tr>
	
	<tr>
		<td>
			<br />
		</td>
	
	</tr>
	<tr>
		<td>
			&nbsp;&nbsp;<fmt:message key="cadastro.modulo.modelo.resposta.campo.titulo"></fmt:message><br /><input id="inputMaior" type="text" name="descricao" >
		</td>
	
	</tr>
	
	<tr>
		<td>
			<br />
		</td>
	
	</tr>
	
	<tr>
		<td>
			&nbsp;&nbsp;<fmt:message key="cadastro.modulo.modelo.resposta.campo.alternativas"></fmt:message><br /><input type="text" name="alternativa" >
		</td>
	</tr>
	
	<tr>
		<td>
			<input id="inputNormal" type="text" name="alternativa" >
		</td>
	
	</tr>
	
	<tr>
		<td>
			<br />
		</td>
	
	</tr>
	
	<tr>
		<td>
			&nbsp;&nbsp;<input id="botaoVerde" type="button" onclick="insRow()" value="+">
		</td>
	
	</tr>
	
	<tr>
		<td>
			<br />
		</td>
	
	</tr>
	
	
	
	<tr>
		<td>
			<input id="botao" type="submit" value='<fmt:message key="pds.botao.adicionar"></fmt:message>'>
		</td>
		
		<td>
			<input id="botao" type="reset" value='<fmt:message key="pds.botao.limpar"></fmt:message>'>
		</td>
	</tr>
</table>  
</td>      
</tr>
<tr>	
</table>
</form>
</fieldset>
</body>
</fmt:bundle>
</html>